﻿using Autofac.Extras.DynamicProxy;
using netcore_comm.Polly;
using netcore_service.Dto;
using netcore_service.Model;
using Panda.DynamicWebApi;
using Panda.DynamicWebApi.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace netcore_service.IService
{
    [DynamicWebApi]
    public interface IAdSpaceService : IDynamicWebApi
    {
        Task<ApiResult<List<AdSpace>>> AdSpaceListAsync();
        Task<ApiResult<string>> AdSpaceUpdateOrAddAsync(AdSpace adSpace);
        Task<ApiResult<AdSpace>> AdSpaceByIdAsync(int id);
        Task<ApiResult<List<AdSpace>>> AdSpaceList(bool isweixin = false);
        Task<ApiResult<string>> AdSpaceDelAsync(int id);     
        Task<ApiResult<List<AdSpaceDto>>> GetAdSpaceByTypeAsync(string type, bool isweixin = false);
    }
}
